package cn.hxlc.tie.demo.modular.zr.equipmentzr.entity;/*
 @author rui
 @date 2021/6/28 --17:50
*/

import cn.hxlc.tie.demo.core.enums.DeptEnum;
import cn.hxlc.tie.demo.core.enums.LevelEnum;
import cn.hxlc.tie.demo.core.enums.StatusEnum;
import cn.hxlc.tie.demo.core.enums.TypeEnum;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("zr_bd_equipment")
public class Equipment implements Serializable {
   private static  final long serialVersionUID=1L;

   @TableId(value="FID",type = IdType.AUTO)
   private Long fid;

   @TableField("FNAME")
   private String fname;

   @TableField("FNUMBER")
   private String fnumber;

   /**
    * 助记码
    */
   @TableField("FMNEMONICCODE")
   private String fmnemoniccode;

   /**
    * 简称
    */
   @TableField("FSIMPLENAME")
   private String fsimplename;

   /**
    * 状态 0启用 1禁用 2删除
    */
   @TableField("FSTATUS")
   @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
   private StatusEnum fstatus;

   @TableField("FMODEL")
   private String fmodel;

   @TableField("FMANUFACTURER")
   private String fmanufacturer;

   @TableField("FTYPE")
   private String ftype;

   @TableField("FUSELOT")
   private int fuselot;

   @TableField("FISAVOIDCHECK")
   private String fisavoidcheck;

   @TableField("FCREATETIME")
   private Date fcreatetime;

   @TableField("FGROUPID")
   private Long  fgroupid;

   @TableField("FISMAIN")
   private int fismain;

   @TableField("FMAINEQUIPMENTID")
   private  int fmainequipmentid;
   @TableField("FISKEY")
   private int fiskey;

   @TableField("FFACTORYID")
   private Long ffactoryid;

   @TableField("FLEVEL")
   @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
   private LevelEnum flevel;

   @TableField("FOUTDATE")
   private Date foutdate;

   @TableField("FBUYDATE")
   private Date fbuydate;

   @TableField("FOUTNUMBER")
   private Date foutnumber;

   @TableField("FCHECKINDATE")
   private Date fcheckindate;

   @TableField("FISCOLLECTDATA")
   private int fiscollectdata;

   @TableField("FREMARK")
   private String fremark;

   @TableField("FPOWER")
   private String fpower;

   @TableField("FRUNSTATE")
   @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
   private DeptEnum frunstate;

   @TableField("FUSERADDRESS")
   private String fuseraddress;

   @TableField("FTONNAGE")
   private Double ftonnage;
   @TableField("FMATERIALID")
   private int fmaterialid;
}
